package org.tbjd.client.builders;

import org.tbjd.client.guis.taskList.TaskListGui;
import org.tbjd.client.interfaces.Builder;
import org.tbjd.client.interfaces.HasMediator;
import org.tbjd.client.interfaces.Observer;
import org.tbjd.client.mediators.AbstractMediator;

import com.google.gwt.user.client.ui.Widget;

public class TaskListBuilder implements Builder, HasMediator, Observer {

	private TaskListGui taskListGui = null;
	private AbstractMediator mediator = null;

	public TaskListBuilder() {
		build();
	}

	public void build() {
		this.taskListGui = TaskListGui.getInstance();
	}

	public void setMediator(AbstractMediator mediator) {
		this.mediator = mediator;
		this.taskListGui.setMediator(this.mediator);
	}

	public void update(Object sender) {
	}

	public Widget getBuildedWidget() {
		return this.taskListGui;
	}

}
